package com.zretc.entity;

import java.util.List;

/**
 * 用户类
 *
 * @author: bLUeSuMMerDreamer
 * @createTime: 2020/7/21 10:43
 */
public class User {
    //用户ID
    private String userId;
    //用户名
    private String userName;
    //用户密码
    private String userPsw;
    //用户电话
    private String userPhone;
    //用户头像
    private String userFace;
    //状态
    private Integer state;
    //地址簿列表
    private List<AddressInfo> addressInfos;

    public List<AddressInfo> getAddressInfos() {
        return addressInfos;
    }

    public void setAddressInfos(List<AddressInfo> addressInfos) {
        this.addressInfos = addressInfos;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", userPsw='" + userPsw + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userFace='" + userFace + '\'' +
                ", addressInfos=" + addressInfos +
                '}';
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPsw() {
        return userPsw;
    }

    public void setUserPsw(String userPsw) {
        this.userPsw = userPsw;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserFace() {
        return userFace;
    }

    public void setUserFace(String userFace) {
        this.userFace = userFace;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public User(String userId, String userName, String userPsw, String userPhone, String userFace, List<AddressInfo> addressInfos) {
        this.userId = userId;
        this.userName = userName;
        this.userPsw = userPsw;
        this.userPhone = userPhone;
        this.userFace = userFace;
        this.addressInfos = addressInfos;
    }

    public User() {
    }
}
